from net_project_tools.Xinshiti import XinItemPage
from net_project_zizhu.zizhuItemPage import zizhuItemPage
from page.net_project_tools.net_item_page import NetItemPage
import user_data
import unittest
from create_data.create_test_data import *
import warnings


class zizhuItemTest(unittest.TestCase):

    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)
        dr = Xin_and_login(user_data.zizhu_project_admin)
        release_item(dr)
        dr.quit()

    def tearDown(self):
        self.page.logout()

    def test_net_item(self):
        """客观题"""
        self.page = zizhuItemPage()
        self.page.login(*user_data.zizhu_student)
        self.page.enter_project()
        self.page.enter_tools('试题')
        # self.page.submit_item()   # 6
        self.page.submit_items()   # 6s


if __name__ == '__main__':
    unittest.main()